<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Main extends CI_Controller {

	public function Main()
	{
		parent::__construct();
		$this->load->helper('url');
		$this->load->library('session');
	}
	
	public function index()
	{
		$data['username'] = '';
		if($this->session->userdata('username') != '') {
			$data['username'] = $this->session->userdata('username');
		}
		$this->load->view('main_view', $data);
	}
}